package com.example.studentstatusmanagement.mapper;

import com.example.studentstatusmanagement.pojo.Msg;
import com.example.studentstatusmanagement.pojo.MsgExample;
import java.util.List;

import com.example.studentstatusmanagement.pojo.doo.ReqMsg;
import com.example.studentstatusmanagement.pojo.doo.ReqSMsg;
import com.example.studentstatusmanagement.pojo.dto.SMsg;
import org.apache.ibatis.annotations.Param;

public interface MsgMapper {
    int countByExample(MsgExample example);

    int deleteByExample(MsgExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Msg record);

    int insertSelective(Msg record);

    List<Msg> selectByExample(MsgExample example);

    Msg selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Msg record, @Param("example") MsgExample example);

    int updateByExample(@Param("record") Msg record, @Param("example") MsgExample example);

    int updateByPrimaryKeySelective(Msg record);

    int updateByPrimaryKey(Msg record);


    List<SMsg> selectMsgs(ReqMsg reqMsg);

    List<SMsg> selectMsgsByStu(ReqSMsg sMsgs);
}